package studio.banner.reference.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import studio.banner.reference.entity.Aggregate;

/**
 * @ClassName AggregateMapper
 * @Deacription TODO
 * @Author Baofeng.Wu
 * @Date 2019/10/30 19:50
 **/
@Mapper
public interface AggregateMapper extends BaseMapper<Aggregate> {
    /**
     * 更新文献集数量
     *
     * @param id
     * @param updateSize
     */
    @Update("update aggregate set size = size + #{update_size} where id = #{id}")
    void updateSize(@Param("id") Integer id, @Param("update_size") Integer updateSize);
}
